package de.hhbk.feedbackmodul.sessionbeans;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import de.hhbk.feedbackmodul.daointerfaces.AnswerSheetDaoIF;
import de.hhbk.feedbackmodul.entities.AnswerSheet;
import de.hhbk.feedbackmodul.remoteInterfaces.AnswerSheetRemoteIF;

@Stateless
public class AnswerSheetSessionBean implements AnswerSheetRemoteIF {

	@EJB
	private AnswerSheetDaoIF dao;
	
	@Override
	public List<AnswerSheet> getAllAnswerSheets() throws Exception {
		return dao.getAllAnswerSheets();
	}

	@Override
	public void createAnswerSheet(AnswerSheet answerSheet) throws Exception {
		dao.createAnswerSheet(answerSheet);

	}

	@Override
	public void updateAnswerSheet(AnswerSheet answerSheet) throws Exception {
		dao.updateAnswerSheet(answerSheet);

	}

	@Override
	public void deleteAnswerSheet(AnswerSheet answerSheet) throws Exception {
		dao.deleteAnswerSheet(answerSheet);
		
	}

}
